﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateDeleteSiteWebPartUserControl.ascx.cs"
    Inherits="Motesrummet.CreateDeleteSiteWebPart.CreateDeleteSiteWebPartUserControl" %>
<asp:HiddenField ID="hdnSelectedTab" runat="server" Value="0" />

<SharePoint:ScriptLink ID="jquery1" Name="/_layouts/Scripts/jquery-1.8.2.js" runat="server"></SharePoint:ScriptLink>
<SharePoint:ScriptLink ID="jquery2" Name="/_layouts/Scripts/jquery-ui.js" runat="server"></SharePoint:ScriptLink>

<SharePoint:CssRegistration ID="CssReg" name="jquery-ui.css" runat="server"/>

<%--<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
<script src="/_layouts/Scripts/jquery-1.8.2.js" type="text/javascript"></script>
<script src="/_layouts/Scripts/jquery-ui.js" type="text/javascript"></script>--%>


<script type="text/javascript">
$(function () {
   $("#tabs").tabs({
       show: function() {
          var selectedTab = $('#tabs').tabs('option', 'selected');
          $("#<%= hdnSelectedTab.ClientID %>").val(selectedTab);
          },
       selected: <%= hdnSelectedTab.Value %>
   });
 });

</script>

<div id="tabs">

    <ul>
        <li><a href="#tabs-1">Lagg till...</a></li>
        <li><a href="#tabs-2">Ta bort...</a></li>
    </ul>
   
    <div id="tabs-1">
        <p style="font-family: 'Courier New', Courier, monospace; font-size: medium; font-weight: bold">
            Url:</p>
        <asp:TextBox ID="txt_Url" runat="server"></asp:TextBox>
        <br />
        <p style="font-family: 'Courier New', Courier, monospace; font-size: medium; font-weight: bold">
            Titel:</p>
        <asp:TextBox ID="txt_Title" runat="server"></asp:TextBox>
        <br />
        <p style="font-family: 'Courier New', Courier, monospace; font-size: medium; font-weight: bold">
            Beskrivning:</p>
        <asp:TextBox ID="txt_Description" runat="server"></asp:TextBox>
        <br />
        <br />
            <asp:Button ID="btn_CreateSite" runat="server" Text="Skapa" 
            OnClick="btn_CreateSite_Click" CssClass="dialogbutton" Height="35px" 
            Width="100px" />
        <br />
        <br />
        <asp:Label ID="lbl_CreateSite" runat="server" Text=""></asp:Label>
        <br />
    </div>
    <div id="tabs-2">
    <p style="font-family: 'Courier New', Courier, monospace; font-size: medium; font-weight: bold">
            Välj site:</p>
        <asp:DropDownList ID="drpd_WebSites" runat="server" Width="100">
        </asp:DropDownList>
        <br />
        <br />
            <asp:Button ID="btn_DeleteSite" runat="server" Text="Ta bort" 
            OnClick="btn_DeleteSite_Click" CssClass="dialogbutton" Height="35px" 
            Width="100px" />
            <br />
            <asp:Label ID="lbl_DeleteSite" runat="server" Text=""></asp:Label>
    </div>
</div>
